package com.dyp.jpademo.repository;

import com.dyp.jpademo.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface UserRepository  extends UserRepositoryRelationships, JpaRepository<User, Long> {
    default List<User> findAllWithEagerRelationships() {
        return this.actUserRelationships(this.findAll());
    }
}
